<?php if (file_exists(sfConfig::get('sf_web_dir') . DIRECTORY_SEPARATOR . sfConfig::get('app_general_site_logo'))): ?>
    <img id="site-logo" src="<?php echo '/' . sfConfig::get('app_general_site_logo') ?>" alt="site logo"/>
<?php endif; ?>

    <div id="system-name">
        <h1>
        <a href="<?php echo url_for('homepage')?>">
        <?php echo sfConfig::get('app_general_system_name') ?>
        </a>
    </h1>
    </div>
    <div id="header-navigation">
        <ul class="navigation-list">
            <li>
                <a class="navigation-item" href="<?php echo url_for('homepage') ?>">Home</a>
            </li>
            <li>
                <a class="navigation-item" href="<?php echo url_for('TagBrowse') ?>">Browse</a>
            </li>
        <?php if ($sf_user->hasCredential('create-collection')): ?>
            <li><a class="navigation-item" href="<?php echo url_for('CollectionNew') ?>">Add New Item</a></li>
        <?php endif; ?>
        <?php if ($sf_user->hasCredential('admin')): ?>
                <li><a class="navigation-item" href="<?php echo ('HTTP://' . $_SERVER['HTTP_HOST'] . '/admin' . (sfApplicationConfiguration::getActive()->getEnvironment() != 'prod' ? '_' . sfApplicationConfiguration::getActive()->getEnvironment() : '') . '.php' ) ?>">Configure</a></li>
        <?php endif; ?>
        <?php if ($sf_user->isAuthenticated()): ?>
                    <li><a class="navigation-item" href="<?php echo url_for('ProfileViewMyProfile') ?>"><?php echo $sf_user ?></a></li>
                    <li><a class="navigation-item" href="<?php echo url_for('sf_guard_signout') ?>">Logout</a></li>

        <?php else: ?>
                        <li><a class="navigation-item" href="<?php echo url_for('sf_guard_signin') ?>">Login</a></li>
        <?php endif; ?>
                        <li>
                            <form class="quick-search-form" action="<?php echo url_for('SearchQuery') ?>" method="get">


                <label for="quickSearchQueryString">Search</label>
                <input name="queryString" id="quickSearchQueryString"/>
                <input type="submit" value="Search"/>
            </form>
        </li>
    </ul>


</div>
